Page({
  data:{
    name:'gin',
    age:18,
    students:[
      {id:1,name:'cherry',age:19},
      {id:2,name:'sunny',age:20},
      {id:3,name:'kobe',age:21},
      {id:4,name:'jay',age:22},
      {id:5,name:'tom',age:23}
    ],
    count:0
  },
  add() {
    this.setData({
      count:this.data.count+1
    })
  },
  sub() {
    this.setData({
      count:this.data.count-1
    })
  }
})